package com.wang.web3;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;

public class MyPropsDetailActivity extends AppCompatActivity implements View.OnClickListener {


    private ImageView iv_img;
    private TextView tv_prop_name;
    private String prop_img;
    private String prop_id;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_props_detail);
        initData();
        initView();
    }

    private void initData() {
        Intent i = getIntent();
        prop_img = i.getStringExtra("girl_img");
        prop_id = i.getStringExtra("girl_id");
    }

    private void initView() {
        iv_img = findViewById(R.id.iv_img);
        tv_prop_name = findViewById(R.id.tv_prop_name);
        Glide.with(this).load(prop_img).into(iv_img);
        tv_prop_name.setText(prop_id);
    }


    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_use:    //使用

                break;
            case R.id.btn_listing:      //挂牌

                break;
        }
    }
}
